package chain_of_responsibility_pattern;

/**
 * @author: 叶子
 * @date: 2022/06/30 23:36
 * 第二步：创建扩展了该记录器的实体类
 **/
public class ErrorLogger extends AbstractLogger {
    public ErrorLogger(int level) {
        this.level = level;
    }

    @Override
    protected void write(String message) {
        System.out.println("Error Console::Logger: " + message);
    }
}